<?php

namespace App\Models\Activity;

use App\Models\BaseModel;
use App\Models\Traits\KfSoftDeletes;
use App\Models\Traits\KfUid;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class ActivityActionModel extends BaseModel
{
    use HasFactory, KfSoftDeletes, KfUid;

    protected $table = "activity_action";

    protected $fillable = [
        "activityId",
        "actionType",
        "name",
        "remark",
        "price",
        "originalPrice",
        "goodsId",
        "goodsNum",
        "shippingAddressType",
        "formTemplateId",
        "examineSwitch",
        "examineUser",
        "groupNotificationBotName",
        "groupNotificationBotWebhook",
        "groupNotificationBotSecret",
    ];

    /**
     * 行为类型
     */
    const ACTION_TYPE_1    = 1;
    const ACTION_TYPE_2    = 2;
    const ACTION_TYPE_3    = 3;
    const ACTION_TYPE_TEXT = [
        self::ACTION_TYPE_1 => "支付订单",
        self::ACTION_TYPE_2 => "表单填写",
        self::ACTION_TYPE_3 => '立即报名',
    ];

//    const SHIPPING_ADDRESS_0    = 0;
    const SHIPPING_ADDRESS_1    = 1;
    const SHIPPING_ADDRESS_2    = 2;
    const SHIPPING_ADDRESS_TEXT = [
//        self::SHIPPING_ADDRESS_0 => "不配送",
        self::SHIPPING_ADDRESS_1 => "直配地址",
        self::SHIPPING_ADDRESS_2 => "订货地址",
    ];

    const IS_HIDDEN_YES  = 1;
    const IS_HIDDEN_NO   = 0;
    const IS_HIDDEN_TEXT = [
        self::IS_HIDDEN_YES => "隐藏",
        self::IS_HIDDEN_NO  => "不隐藏",
    ];
}
